const { InitContextFinder } = require('../lib/mvcEntity.js');

const initContextFinder = new InitContextFinder();

let realPath =".";
initContextFinder.findInitContext = function(fname){
  let realControllerPath = realPath + "/"+fname+".js";
  let filter = require(realControllerPath);
  return filter;
  
} ;
initContextFinder.initConf=function(pathStr){
   if(pathStr){
	   realPath = pathStr;
   }
}
  
module.exports = initContextFinder;